//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.yaukie.base.constant;

public class SysConstant {
    public static final String UTF8 = "UTF-8";
    public static final String GBK = "GBK";
    public static final String HTTP = "http://";
    public static final String HTTPS = "https://";
    public static final String SUCCESS = "0";
    public static final String FAIL = "-1";
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
    public static final Integer CAPTCHA_EXPIRATION = 2;
    public static final String TOKEN = "token";
    public static final String TOKEN_PREFIX = "Bearer ";
    public static final String LOGIN_USER_KEY = "login_user_key";
    public static final String JWT_USERID = "userid";
    public static final String JWT_USERNAME = "sub";
    public static final String JWT_AVATAR = "avatar";
    public static final String JWT_CREATED = "created";
    private static String FTP_USERNAME;
    private static String FTP_PASSWORD;
    private static String FTP_CONTROL_ENCODING;

    public SysConstant() {
    }

    public static enum ModuleType {
        AUTH("认证模块"),
        XJOB("作业管理"),
        XTRANS("转换管理"),
        XLOG("日志管理"),
        XWARN("告警监控"),
        XCLUSTER("集群调度"),
        XMONITOR("系统监控"),
        XDICT("字典管理"),
        XDATABASE("业务数据库"),
        XREPO("资源库管理"),
        XQUARTZ("定时调度"),
        UNKNOWN("未知模块");

        public String module;

        private ModuleType(String module) {
            this.module = module;
        }

        public String getModule() {
            return this.module;
        }
    }

    public static enum ClientType {
        OTHER,
        PC,
        MOBILE,
        PAD;

        private ClientType() {
        }
    }

    public static enum OperationType {
        OTHER,
        INSERT,
        UPDATE,
        DELETE,
        LOGOUT,
        CLEAR,
        START,
        STOP,
        SCHEDULER,
        REMOTE_START,
        REMOTE_STOP;

        private OperationType() {
        }
    }

    public static enum DsType {
        MASTER,
        SLAVE;

        private DsType() {
        }
    }

    public static enum OperResult {
        SUCCESS,
        FAIL;

        private OperResult() {
        }
    }

    public static enum Login {
        LOGIN_SUCCESS("success"),
        LOGIN_OUT("logout"),
        LOGIN_FAIL("login failed");

        String des;

        private Login(String des) {
            this.des = des;
        }

        public String getDes() {
            return this.des;
        }
    }
}
